<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: Com_Server Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_com___server.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_com___server-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Com_Server Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Com_Server:</div>
<div class="dyncontent">
<div class="center"><img src="class_com___server__inherit__graph.png" border="0" usemap="#_com___server_inherit__map" alt="Inheritance graph"/></div>
<map name="_com___server_inherit__map" id="_com___server_inherit__map">
<area shape="rect" id="node2" href="class_my_thread_class.html" title="MyThreadClass" alt="" coords="5,5,117,32"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for Com_Server:</div>
<div class="dyncontent">
<div class="center"><img src="class_com___server__coll__graph.png" border="0" usemap="#_com___server_coll__map" alt="Collaboration graph"/></div>
<map name="_com___server_coll__map" id="_com___server_coll__map">
<area shape="rect" id="node2" href="class_my_thread_class.html" title="MyThreadClass" alt="" coords="5,95,117,121"/><area shape="rect" id="node3" href="class_prngd.html" title="Prngd" alt="" coords="141,95,197,121"/><area shape="rect" id="node4" href="class_i_o_unit.html" title="IOUnit" alt="" coords="100,5,159,32"/><area shape="rect" id="node5" href="class_b_b_s.html" title="Blum Blum Shub pseudo random number generator. " alt="" coords="183,5,233,32"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a34e4e54191ade256f3cf8059a092efb7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a34e4e54191ade256f3cf8059a092efb7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Com_Server</b> (Prngd_State state)</td></tr>
<tr class="separator:a34e4e54191ade256f3cf8059a092efb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a354f966d33d5003f9471bb2d33d96086"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a354f966d33d5003f9471bb2d33d96086"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isActive</b> ()</td></tr>
<tr class="separator:a354f966d33d5003f9471bb2d33d96086"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:aac3f3bcb2895b0fd012c4809aaacc11b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac3f3bcb2895b0fd012c4809aaacc11b"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>thread_listen</b> (pthread_t parent_th)</td></tr>
<tr class="separator:aac3f3bcb2895b0fd012c4809aaacc11b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60451d83844a03d4965304926ad661a9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_com___server.html#a60451d83844a03d4965304926ad661a9">thread_work</a> ()</td></tr>
<tr class="separator:a60451d83844a03d4965304926ad661a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_my_thread_class"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_my_thread_class')"><img src="closed.png" alt="-"/>&#160;Private Member Functions inherited from <a class="el" href="class_my_thread_class.html">MyThreadClass</a></td></tr>
<tr class="memitem:a5a61698b55e4b49c3050854bb10ec8ba inherit pub_methods_class_my_thread_class"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_thread_class.html#a5a61698b55e4b49c3050854bb10ec8ba">StartWorkerThread</a> ()</td></tr>
<tr class="separator:a5a61698b55e4b49c3050854bb10ec8ba inherit pub_methods_class_my_thread_class"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d7edfe08ebb05f0ed293d4623f5b544 inherit pub_methods_class_my_thread_class"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0d7edfe08ebb05f0ed293d4623f5b544"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>StartListenerThread</b> (pthread_t parent_th)</td></tr>
<tr class="separator:a0d7edfe08ebb05f0ed293d4623f5b544 inherit pub_methods_class_my_thread_class"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a649497005488e50141baa26434719e69 inherit pub_methods_class_my_thread_class"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_thread_class.html#a649497005488e50141baa26434719e69">WaitForWorkerThreadToExit</a> ()</td></tr>
<tr class="separator:a649497005488e50141baa26434719e69 inherit pub_methods_class_my_thread_class"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f39e3150017a1e203654cb6ebbd94fa inherit pub_methods_class_my_thread_class"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f39e3150017a1e203654cb6ebbd94fa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>WaitForListenerThreadToExit</b> ()</td></tr>
<tr class="separator:a2f39e3150017a1e203654cb6ebbd94fa inherit pub_methods_class_my_thread_class"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:a943f3ddda05d4e98729d6828413f7f40"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a943f3ddda05d4e98729d6828413f7f40"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>dummy_handler</b> (int)</td></tr>
<tr class="separator:a943f3ddda05d4e98729d6828413f7f40"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a2a328d32fb4e94b925a64533b038e3ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2a328d32fb4e94b925a64533b038e3ae"></a>
<a class="el" href="class_prngd.html">Prngd</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>prngd</b></td></tr>
<tr class="separator:a2a328d32fb4e94b925a64533b038e3ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b39032fcebf4b0477e737fecbd0104f"><td class="memItemLeft" align="right" valign="top">pthread_attr_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_com___server.html#a2b39032fcebf4b0477e737fecbd0104f">attr_obj</a></td></tr>
<tr class="separator:a2b39032fcebf4b0477e737fecbd0104f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8befd6aa5f57f8f91291d97bc0a2144e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8befd6aa5f57f8f91291d97bc0a2144e"></a>
sigset_t&#160;</td><td class="memItemRight" valign="bottom"><b>sigmask</b></td></tr>
<tr class="separator:a8befd6aa5f57f8f91291d97bc0a2144e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ba88ead8b13f79e63b898508081f6a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ba88ead8b13f79e63b898508081f6a6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>sig</b></td></tr>
<tr class="separator:a8ba88ead8b13f79e63b898508081f6a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d955c09786765c20739f493607fb20c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2d955c09786765c20739f493607fb20c"></a>
struct sigaction&#160;</td><td class="memItemRight" valign="bottom"><b>action</b></td></tr>
<tr class="separator:a2d955c09786765c20739f493607fb20c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36713c7300a570d31c4dd9a2256bbaf0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36713c7300a570d31c4dd9a2256bbaf0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>create_socket</b></td></tr>
<tr class="separator:a36713c7300a570d31c4dd9a2256bbaf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d071e9be166f5d98306b2b73c704bd7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5d071e9be166f5d98306b2b73c704bd7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>new_socket</b></td></tr>
<tr class="separator:a5d071e9be166f5d98306b2b73c704bd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed7765c8e9ced5d069a49207cbd2856c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed7765c8e9ced5d069a49207cbd2856c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>port</b></td></tr>
<tr class="separator:aed7765c8e9ced5d069a49207cbd2856c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3601553f358fdcaeca2614f15dc78cfa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3601553f358fdcaeca2614f15dc78cfa"></a>
socklen_t&#160;</td><td class="memItemRight" valign="bottom"><b>addrlen</b></td></tr>
<tr class="separator:a3601553f358fdcaeca2614f15dc78cfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d4113f423549083557ec64ce135baf3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8d4113f423549083557ec64ce135baf3"></a>
ssize_t&#160;</td><td class="memItemRight" valign="bottom"><b>size</b></td></tr>
<tr class="separator:a8d4113f423549083557ec64ce135baf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abef24c5689bf1bbee93ff35453e18120"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abef24c5689bf1bbee93ff35453e18120"></a>
struct sockaddr_in&#160;</td><td class="memItemRight" valign="bottom"><b>address</b></td></tr>
<tr class="separator:abef24c5689bf1bbee93ff35453e18120"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09484c6668d7cb7f03eed19492a0f3ba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09484c6668d7cb7f03eed19492a0f3ba"></a>
char&#160;</td><td class="memItemRight" valign="bottom"><b>work_buffer</b> [BUFFER_SIZE]</td></tr>
<tr class="separator:a09484c6668d7cb7f03eed19492a0f3ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24f916d1cbbc36a27ab118c6ceb24fd5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24f916d1cbbc36a27ab118c6ceb24fd5"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>worker_busy</b></td></tr>
<tr class="separator:a24f916d1cbbc36a27ab118c6ceb24fd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab67915219200f7f9d26f5c39a2dfc5ed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab67915219200f7f9d26f5c39a2dfc5ed"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>param_count</b></td></tr>
<tr class="separator:ab67915219200f7f9d26f5c39a2dfc5ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af158fa6b05760da8b3a1a8181e78d97d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af158fa6b05760da8b3a1a8181e78d97d"></a>
char **&#160;</td><td class="memItemRight" valign="bottom"><b>params</b></td></tr>
<tr class="separator:af158fa6b05760da8b3a1a8181e78d97d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0799a484b93ae77c9e4c24aa89ba4a7a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0799a484b93ae77c9e4c24aa89ba4a7a"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>active</b></td></tr>
<tr class="separator:a0799a484b93ae77c9e4c24aa89ba4a7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a60451d83844a03d4965304926ad661a9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Com_Server::thread_work </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Implement this method in your subclass with the code you want your thread to run. </p>

<p>Implements <a class="el" href="class_my_thread_class.html#a4a44c151b5c74a673e8b1d215d876150">MyThreadClass</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_com___server_a60451d83844a03d4965304926ad661a9_cgraph.png" border="0" usemap="#class_com___server_a60451d83844a03d4965304926ad661a9_cgraph" alt=""/></div>
<map name="class_com___server_a60451d83844a03d4965304926ad661a9_cgraph" id="class_com___server_a60451d83844a03d4965304926ad661a9_cgraph">
<area shape="rect" id="node2" href="class_prngd.html#a617fbe2be79677859235262d59b4c0f0" title="Prngd::work" alt="" coords="224,56,315,83"/><area shape="rect" id="node3" href="class_prngd.html#a07d9db50d295ba88184d0b0d3d191a06" title="Prngd::readParameters" alt="" coords="363,5,519,32"/><area shape="rect" id="node4" href="class_prngd.html#a9e5848669332f0936a77b2db0c663c37" title="Prngd::getRndData" alt="" coords="912,81,1044,108"/><area shape="rect" id="node5" href="class_b_b_s.html#a698e05fd2f2968af4600fb160e7faeb7" title="BBS::generateBits" alt="" coords="375,107,506,133"/><area shape="rect" id="node6" href="class_b_b_s.html#a0659bff6844aaba740d202b8ca168ae1" title="BBS::create_M" alt="" coords="567,107,677,133"/><area shape="rect" id="node7" href="class_b_b_s.html#adadf22f67593a49c880d4f0a22ef83dd" title="BBS::getBlumPrime" alt="" coords="725,107,864,133"/></map>
</div>
</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a2b39032fcebf4b0477e737fecbd0104f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">pthread_attr_t Com_Server::attr_obj</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Variablen / structs fuer thread </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>H:/prngd_server/inc/<a class="el" href="_com___server_8h_source.html">Com_Server.h</a></li>
<li>H:/prngd_server/src/Com_Server.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_com___server.html">Com_Server</a></li>
    <li class="footer">Generated on Fri Aug 29 2014 12:46:48 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
